﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using NetWing.Common;
using NetWing.Common.Data.SqlServer;
using NetWing.Model;
using System.Web.UI.WebControls;

namespace NetWing.BPM.Admin.weixin
{
    public partial class bindyg : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //当用户访问dingd.aspx 页面时,系统就会自动获得openid并返回当前页面
                string reurl = Request.Url.ToString();//获取当前url
                CookieHelper.WriteCookie("returnurl", reurl);//把返回信息写入cookies
                bool r = wxhelper.checkLogin();//wxhelper.checkLogin() 该函数会自动去获得用户openid 获得openid后需要返回当前入口页面 reurl 就是获得openid后的入口页面
                string kk = "";
            }
        }
    }
}